﻿using Infrastructure.Web;
using MyData.Dto;
using MyData.Models;
using MyDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyApplication
{
   
    public class MeetApp
    {
        private IMeetRepository _meetRepository;
        public MeetApp(IMeetRepository meetRepository)
        {
            _meetRepository = meetRepository;
        }
        public PageDto<MeetDto> GetMeetList(QueryListModel query, string meetName)
        {
            return _meetRepository.GetMeetList(query,meetName);
        }
        public bool AddMeet(Meet meet)
        {
            return _meetRepository.AddMeet(meet);
        }
        public bool UpdateMeet(Meet meet)
        {
            return _meetRepository.UpdateMeet(meet);
        }
        public bool DeleteMeet(Guid id)
        {
            return _meetRepository.DeleteMeet(id);
        }
        public MeetDto GetMeetDto(Guid? id)
        {
            return _meetRepository.GetMeetDto(id);
        }
        public bool ClearMeet(Guid id)
        {
            return _meetRepository.ClearMeet(id);
        }
    }
}
